import request from '@/utils/request'

export function listAdoption(query) {
  return request({
    url: '/adopt/list',
    method: 'get',
    params: query,
  })
}

export function getAdoption(adopt) {
  return request({
    url: '/adopt/get/' + adopt,
    method: 'get'
  })
}


export function addAdoption(data) {
  return request({
    url: '/adopt/add',
    method: 'post',
    data:data
  })
}

export function listMyAdoption(query) {
  return request({
    url: '/adopt/listMyAdoption',
    method: 'get',
    params: query,
  })
}
